//初始化一级玩法菜单
var sscPlayRules = function () {
    var thisPanel = $(".l-c-one");
    thisPanel.empty();
    var html = '<li class="cur" onclick ="sscWXRules()">五星</li>'
        + '<li onclick ="sscQSXRules()">前四</li>'
        + '<li onclick ="sscHSXRules()">后四</li>'
        + '<li onclick ="sscQSRules()">前三</li>'
        + '<li onclick ="sscZSRules()">中三</li>'
        + '<li onclick ="sscHSRules()">后三</li>'
        + '<li onclick ="sscEXRules()">二星</li>'
        + '<li onclick ="sscDWDRules()">定位胆</li>'
        + '<li onclick ="sscBDWRules()">不定位</li>'
        + '<li onclick ="sscKDRules()">跨度</li>'
        + '<li onclick ="sscRXRules()">任选</li>'
        + '<li onclick ="sscDXDSRules()">大小单双</li>'
        + '<li onclick ="sscHZRules()">和值</li>'
        + '<li onclick ="sscQWRules()">趣味</li>';
    thisPanel.html(html);
    sscWXRules();
};

// 五星下级菜单
var sscWXRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'wxzhixfs\')">五星复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzhixds\')">五星单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzhixzh\')">五星组合</li>'
        + '</ul>'

    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxyel\')">组选120</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxls\')">组选60</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxsl\')">组选30</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxel\')">组选20</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxyl\')">组选10</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'wxzxw\')">组选5</li>'
        + '</ul>'
    thisPanel.eq(1).html(twoHtml);

    Lottery_Rule.chooseRule('wxzhixfs');
}
// 四星
var sscQSXRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'sixzhixfsq\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sixzhixdsq\')">单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sixzhixzhq\')">组合</li>' + '</ul>';
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qsizxes\')">组选24</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qsizxye\')">组选12</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qsizxl\')">组选6</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qsizxs\')">组选4</li>' + '</ul>';
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('sixzhixfsq');
}
//后四星
var sscHSXRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'sixzhixfsh\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sixzhixdsh\')">单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sixzhixzhh\')">组合</li>' + '</ul>';
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hsizxes\')">组选24</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hsizxye\')">组选12</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hsizxl\')">组选6</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hsizxs\')">组选4</li>' + '</ul>';
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('sixzhixfsh');
}
// 前三
var sscQSRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur"  onclick ="Lottery_Rule.chooseRule(\'sxzhixfsq\')">复式</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzhixdsq\')">单式</li>' + '</ul>';
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzsq\')">组三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzsdtq\')">组三胆拖</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzlq\')">组六</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzldtq\')">组六胆拖</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxhhzxq\')">混合组选</li>' + '</ul>';
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('sxzhixfsq');
}
// 中三
var sscZSRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'sxzhixfsz\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzhixdsz\')">单式</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzsz\')">组三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzsdtz\')">组三胆拖</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzlz\')">组六</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxzuxzldtz\')">组六胆拖</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'sxhhzxz\')">混合组选</li>' + '</ul>'
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('sxzhixfsz');
}
// 后三
var sscHSRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur"  onclick ="Lottery_Rule.chooseRule(\'sxzhixfsh\')">复式</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzhixdsh\')">单式</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzuxzsh\')">组三</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzuxzsdth\')">组三胆拖</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzuxzlh\')">组六</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxzuxzldth\')">组六胆拖</li>'
        + '<li  onclick ="Lottery_Rule.chooseRule(\'sxhhzxh\')">混合组选</li>' + '</ul>'
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('sxzhixfsh');
}
// 二星
var sscEXRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'exzhixfsq\')">前二复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzhixdsq\')">前二单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzhixfsh\')">后二复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzhixdsh\')">后二单式</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzuxfsq\')">前二复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzuxdsq\')">前二单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzuxfsh\')">后二复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'exzuxdsh\')">后二单式</li>' + '</ul>'
    thisPanel.eq(1).html(twoHtml);
    Lottery_Rule.chooseRule('exzhixfsq');
}
// 定位胆
var sscDWDRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>定位胆：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'dweid\')">定位胆</li>'
        + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    Lottery_Rule.chooseRule('dweid');
}
// 不定位
var sscBDWRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>不定位：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'bdwqs\')">前三一码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdwzs\')">中三一码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdwhs\')">后三一码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdw5x1m\')">五星一码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdw5x2m\')">五星二码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdw5x3m\')">五星三码</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdw2mjc\')">二码计重</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'bdw3mjc\')">三码计重</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    Lottery_Rule.chooseRule('bdwqs');
}
// 跨度
var sscKDRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>跨度：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'kuaduqs\')">前三跨度</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'kuaduzs\')">中三跨度</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'kuaduhs\')">后三跨度</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'kuaduqe\')">前二跨度</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'kuaduhe\')">后二跨度</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    Lottery_Rule.chooseRule('kuaduqs');
}
// 任选
var sscRXRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>任四：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'rx4fs\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx4ds\')">单式</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>任三：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx3fs\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx3ds\')">单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx3z3\')">组三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx3z6\')">组六</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx3zxhh\')">混合</li>' + '</ul>'
    thisPanel.eq(1).html(twoHtml);
    var threeHtml = '<span>任二：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx2fs\')">复式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx2ds\')">单式</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'rx2zx\')">组选</li>' + '</ul>'
    thisPanel.eq(2).html(threeHtml);
    Lottery_Rule.chooseRule('rx4fs');
}
// 大小单双
var sscDXDSRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty();
    var oneHtml = '<span>大小单双：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'dxdsqe\')">前二</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'dxdshe\')">后二</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'dxdshz\')">和值</li></ul>';
    thisPanel.eq(0).html(oneHtml);
    Lottery_Rule.chooseRule('dxdsqe');
}
// 和值
var sscHZRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>直选：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'zhixhzqs\')">前三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zhixhzzs\')">中三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zhixhzhs\')">后三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zhixhzqe\')">前二</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zhixhzhe\')">后二</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);
    var twoHtml = '<span>组选：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zuxhzqs\')">前三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zuxhzzs\')">中三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'zuxhzhs\')">后三</li>' + '</ul>'
    thisPanel.eq(1).html(twoHtml);
    var threeHtml = '<span>尾数：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hzwsqs\')">前三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hzwszs\')">中三</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'hzwshs\')">后三</li>' + '</ul>'
    thisPanel.eq(2).html(threeHtml);
    Lottery_Rule.chooseRule('zhixhzqs');
}
// 趣味
var sscQWRules = function () {
    var thisPanel = $(".lott-Control").find(".l-c-item");
    thisPanel.empty()
    var oneHtml = '<span>趣味：</span><ul class="l-c-tow">'
        + '<li class="cur" onclick ="Lottery_Rule.chooseRule(\'qwyffs\')">一帆风顺</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qwhscs\')">好事成双</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qwsxbx\')">三星报喜</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'qwsjfc\')">四季发财</li>' + '</ul>'
    thisPanel.eq(0).html(oneHtml);

    var twoHtml = '<span>龙虎：</span><ul class="l-c-tow">'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhwq\')">万千</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhwb\')">万百</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhws\')">万十</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhwg\')">万个</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhqb\')">千百</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhqs\')">千十</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhqg\')">千个</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhbs\')">百十</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhbg\')">百个</li>'
        + '<li onclick ="Lottery_Rule.chooseRule(\'lhsg\')">十个</li>' + '</ul>';
    thisPanel.eq(1).html(twoHtml);

    var threeHtml = '<span>和：</span>' +
        '<ul class="l-c-tow">' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hwq\')">万千</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hwb\')">万百</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hws\')">万十</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hwg\')">万个</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hqb\')">千百</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hqs\')">千十</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hqg\')">千个</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hbs\')">百十</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hbg\')">百个</li>' +
        '<li onclick ="Lottery_Rule.chooseRule(\'hsg\')">十个</li>' +
        '</ul>';
    thisPanel.eq(2).html(threeHtml);

    Lottery_Rule.chooseRule('qwyffs');
}
